<?php
/**
 * Created by 绵阳人维网络科技有限公司.
 * User: 罗东华
 * Date: 2016/3/21
 * Time: 16:07
 */
namespace Admin\Logic;
class SitesLogic extends AdminLogicBase{

    public function current(){
        $sid=cookie('sid');
        if(!$sid){
            $site_info=$this->where(array('status'=>1))->find();
        }else{
            $site_info=$this->where(array('status'=>1,'site_id'=>$sid))->find();
        }
        return $site_info;
    }

}